﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="HeadlineNews.aspx.cs" Inherits="SBACN.WebSite.HeadlineNews" %>

<%@ Register Src="~/UC/ClientPager.ascx" TagName="Pager" TagPrefix="ucl" %>
<%@ Register Src="~/UC/Navigator.ascx" TagName="Navigator" TagPrefix="uc1" %>
<%@ Register Src="~/UC/Menu.ascx" TagName="Menu" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--主内容区-->
    <div id="wrapper">
		<uc1:navigator id="Navigator1" runat="server" />
        <!--左边栏-->
		<uc2:Menu ID="Menu1" runat="server" />
        <!--左边栏-->
        <div id="container_r">
            <div id="pic_box">
                <img src="../images/assinfo_img.jpg" width="756" height="126" /></div>
            <div id="main_rbox">
                <div id="news_con1">
                    <ul>
                        <asp:Repeater runat="server" ID="rptHeadlineNews">
                            <ItemTemplate>
                                <li><span>[<%#Convert.ToDateTime( Eval("CreateDate")).ToString("yyyy-MM-dd")%>] </span>
                                    <a target="_blank" href="HeadlineNewsDetail.aspx?id=<%#Eval("id")%>">
                                        <%# Eval("Title")%>
                                        <img style="display: <%#(int.Parse((Convert.ToDateTime(Eval("CreateDate"))-Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd"))).ToString().Replace(".00:00:00","").Replace("00:00:00","0"))<-5)?"none":""%>;"
                                            src="../images/new.jpg" /></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div id="page">
                    <ucl:Pager runat="server" PageSize="10" Middle_rpt_Size="10" ID="Pager1" OnSelectedPageIndexChanged="BindSelectedPageIndexChanged" />
                </div>
            </div>
        </div>
        <!--右边栏-->
    </div>
    <div style="clear: both;">
    </div>
    <!--主内容区-->
</asp:Content>
